package com.pine.app.module.security.oauth.provider.client.service.impl;


import com.pine.app.module.security.oauth.provider.client.ClientDetails;
import com.pine.app.module.security.oauth.provider.client.dao.ClientDao;
import com.pine.app.module.security.oauth.provider.client.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * <p>
 * OAuth2客户端 服务实现类
 * </p>
 *
 * @author XYJXUST
 * @since 2018-04-13
 */

public class ClientServiceImpl  implements ClientService {


    private ClientDao clientDao;

    @Autowired
    public void setClientDao(ClientDao clientDao) {
        this.clientDao = clientDao;
    }

    public ClientServiceImpl(){

    }

    public ClientServiceImpl(ClientDao clientDao){
        this.clientDao = clientDao;
    }

    @Override
    public ClientDetails getByClientId(String clientId) {
        return clientDao.getClientDetail(clientId);
    }
}
